﻿<Window x:Class="Wilke.Interactive.Drone.Extensions.PathDesigner"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PathDesigner" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="689" Width="937" xmlns:thriple="http://thriple.codeplex.com/">
    <Window.Resources>
        <Style x:Key="emptyButton" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <ContentPresenter ContentTemplate="{TemplateBinding Content}"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <DockPanel LastChildFill="True">
        <Grid DockPanel.Dock="Top" Height="50">
            <Button Height="25" Margin="59,12,0,13" Name="buttonSave" Content="Save" HorizontalAlignment="Left" Width="48" Click="ButtonSave_Click" />
            <Button Content="Run" Height="25" Margin="113,12,0,13" Name="buttonRun" Click="buttonRun_Click" HorizontalAlignment="Left" Width="48" />
            <Button Content="Open" Height="25" HorizontalAlignment="Left" Margin="6,12,0,13" Name="buttonOpen" Width="48" Click="buttonOpen_Click" />
            <CheckBox Content="Track activities" Height="16" HorizontalAlignment="Left" Margin="184,17,0,0" Name="checkBoxTrackWorkflow" VerticalAlignment="Top" ToolTip="If this option is enabled the workflow runtime will provide visual feedback on the current active step in the sequence. This option requires the workflow to be saved to disk." />
        </Grid>
        <Grid Name="canvas">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="70*"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <GridSplitter Grid.Column="2" 
                          Name="gridSplitterColumn12" 
                          Width="5" 
                          ResizeDirection="Columns" 
                          ResizeBehavior="PreviousAndNext" 
                          HorizontalAlignment="Stretch" DragCompleted="gridSplitterColumn12_DragCompleted" />
            <GridSplitter Grid.Column="4" 
                          Name="gridSplitterColumn23" 
                          Width="5" 
                          ResizeDirection="Columns" 
                          ResizeBehavior="PreviousAndNext" 
                          HorizontalAlignment="Stretch" DragCompleted="gridSplitterColumn23_DragCompleted" />
            <Canvas x:Name="parkZoneLeft"
                    Background="SlateGray"
                    Width="25"
                    Visibility="Collapsed" 
                    MouseDown="parkZoneLeft_MouseDown"
                    Grid.Column="0">
                <Border Width="22"
                        Height="100"
                        Background="Silver"
                        CornerRadius="0, 5, 5, 0"
                        Padding="2"
                        Margin="0, 4, 0, 0">
                    <Canvas>
                        <Image Source="/Wilke.Interactive.Drone.Extensions;component/Resources/Images/Toolbox.png"
                               Stretch="None"
                               VerticalAlignment="Top">                        
                        </Image>
                        <TextBlock Foreground="White" Margin=" 0, 25, 0, 0">
                            <TextBlock.LayoutTransform>
                                <TransformGroup>                                                                    
                                    <RotateTransform Angle="90"/>
                                </TransformGroup>
                            </TextBlock.LayoutTransform>
                            Toolbox
                        </TextBlock>
                    </Canvas>
                </Border>
            </Canvas>
            <Border
                    BorderBrush="SlateGray"
                    BorderThickness="1"
                    Grid.Column="1">
                <StackPanel x:Name="toolboxControlPanel">
                    <Grid Background="DarkGray">
                        <TextBlock 
                           Height="23"
                           Padding="4, 2, 0, 0" FontWeight="Bold">                    
                            Activities
                        </TextBlock>
                        <Button Height="23" 
                                Name="buttonCollapseLeft" 
                                VerticalAlignment="Top" 
                                Style="{StaticResource emptyButton}" HorizontalAlignment="Right" Click="buttonCollapseLeft_Click">
                            <Image Source="/Wilke.Interactive.Drone.Extensions;component/Resources/Images/Collapse.png"/>
                        </Button>
                    </Grid>
                </StackPanel>
            </Border>
            <Border
                    BorderBrush="SlateGray"
                    BorderThickness="1"
                    Grid.Column="3">
                <Grid Name="designerPanel">
                    
                </Grid>
            </Border>
            <Border
                    BorderBrush="SlateGray"
                    BorderThickness="1"
                    Grid.Column="5">
                <StackPanel x:Name="propertiesGridPanel">
                    <Grid Background="DarkGray">
                        <TextBlock 
                           Height="23"
                           Padding="4, 2, 0, 0" FontWeight="Bold">                    
                            Properties
                        </TextBlock>
                        <Button Height="23" 
                                Name="buttonCollapseRight" 
                                VerticalAlignment="Top" 
                                Style="{StaticResource emptyButton}" 
                                Click="buttonCollapseRight_Click"
                                HorizontalAlignment="Right">
                            <Image Source="/Wilke.Interactive.Drone.Extensions;component/Resources/Images/Expand.png"/>
                        </Button>
                    </Grid>
                </StackPanel>
            </Border>
            <Canvas x:Name="parkZoneRight"
                    Background="SlateGray"
                    Width="25"
                    Visibility="Collapsed" 
                    Grid.Column="6" 
                    MouseDown="parkZoneRight_MouseDown">
                <Border Width="22"
                        Height="100"
                        Background="Silver"
                        CornerRadius="0, 5, 5, 0"
                        Padding="2"
                        Margin="0, 4, 0, 0">
                    <Canvas>
                        <Image Source="/Wilke.Interactive.Drone.Extensions;component/Resources/Images/PropertiesGrid.png"
                               Stretch="None"
                               VerticalAlignment="Top">
                        </Image>
                        <TextBlock Foreground="White" Margin=" 0, 25, 0, 0">
                            <TextBlock.LayoutTransform>
                                <TransformGroup>                                                                    
                                    <RotateTransform Angle="90"/>
                                </TransformGroup>
                            </TextBlock.LayoutTransform>
                            Properties
                        </TextBlock>
                    </Canvas>
                </Border>
            </Canvas>
        </Grid>
    </DockPanel>
</Window>
